package org.fioma.tree;

public interface InternalNode<L, I extends InternalNode<L, I, F>, F extends Leaf<L, I, F>> extends Node<L, I, F> {
	// pointer to: parent node, each child node and Word

	public Node<L, I, F> nextNode(char letter);

	public Node<L, I, F> nextNode(byte letter);

	public void setChild(Node<L, I, F> node, char letter);

	public void setChild(Node<L, I, F> node, byte letter);

	public I createInternalNode(L word);

	public F createLeaf(L word);

}
